<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-2"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-3"></span><span class="hs-comment">-- Module      :  Distribution.ReadE</span><span>
</span><span id="line-4"></span><span class="hs-comment">-- Copyright   :  Jose Iborra 2008</span><span>
</span><span id="line-5"></span><span class="hs-comment">-- License     :  BSD3</span><span>
</span><span id="line-6"></span><span class="hs-comment">--</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Maintainer  :  cabal-devel@haskell.org</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-9"></span><span class="hs-comment">--</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- Simple parsing with failure</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.ReadE</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-13"></span><span>   </span><span class="annot"><span class="hs-comment">-- * ReadE</span></span><span>
</span><span id="line-14"></span><span>   </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier">ReadE</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#succeedReadE"><span class="hs-identifier">succeedReadE</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#failReadE"><span class="hs-identifier">failReadE</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-15"></span><span>   </span><span class="annot"><span class="hs-comment">-- * Projections</span></span><span>
</span><span id="line-16"></span><span>   </span><span class="annot"><a href="Distribution.ReadE.html#readEOrFail"><span class="hs-identifier">readEOrFail</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-17"></span><span>   </span><span class="annot"><a href="Distribution.ReadE.html#parsecToReadE"><span class="hs-identifier">parsecToReadE</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-18"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Parsec.html"><span class="hs-identifier">Distribution.Parsec</span></a></span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Parsec.FieldLineStream.html"><span class="hs-identifier">Distribution.Parsec.FieldLineStream</span></a></span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span class="hs-comment">-- | Parser with simple error reporting</span><span>
</span><span id="line-27"></span><span class="hs-keyword">newtype</span><span> </span><span id="ReadE"><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span></span><span> </span><span id="local-6989586621679647967"><span class="annot"><a href="#local-6989586621679647967"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="ReadE"><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span></span><span> </span><span class="hs-special">{</span><span id="runReadE"><span class="annot"><span class="annottext">forall a. ReadE a -&gt; String -&gt; Either String a
</span><a href="Distribution.ReadE.html#runReadE"><span class="hs-identifier hs-var hs-var">runReadE</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Either.html#Either"><span class="hs-identifier hs-type">Either</span></a></span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ErrorMsg"><span class="hs-identifier hs-type">ErrorMsg</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647967"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">}</span><span>
</span><span id="line-28"></span><span class="hs-keyword">type</span><span> </span><span id="ErrorMsg"><span class="annot"><a href="Distribution.ReadE.html#ErrorMsg"><span class="hs-identifier hs-var">ErrorMsg</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679647918"><span class="annot"><a href="../../base/src/GHC.Base.html#Functor"><span class="hs-identifier hs-type">Functor</span></a></span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-31"></span><span>  </span><span id="local-6989586621679647916"><span class="annot"><span class="annottext">fmap :: forall a b. (a -&gt; b) -&gt; ReadE a -&gt; ReadE b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var hs-var hs-var hs-var">fmap</span></a></span></span><span> </span><span id="local-6989586621679647915"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679647915"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span><span> </span><span id="local-6989586621679647914"><span class="annot"><span class="annottext">String -&gt; Either String a
</span><a href="#local-6989586621679647914"><span class="hs-identifier hs-var">p</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; Either String b) -&gt; ReadE b
forall a. (String -&gt; Either String a) -&gt; ReadE a
</span><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span><span> </span><span class="annot"><span class="annottext">((String -&gt; Either String b) -&gt; ReadE b)
-&gt; (String -&gt; Either String b) -&gt; ReadE b
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679647913"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647913"><span class="hs-identifier hs-var">txt</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">String -&gt; Either String a
</span><a href="#local-6989586621679647914"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647913"><span class="hs-identifier hs-var">txt</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-32"></span><span>                                       </span><span class="annot"><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-type">Right</span></a></span><span> </span><span id="local-6989586621679647912"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679647912"><span class="hs-identifier hs-var">a</span></a></span></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">b -&gt; Either String b
forall a b. b -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-var">Right</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679647915"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679647912"><span class="hs-identifier hs-var">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-33"></span><span>                                       </span><span class="annot"><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-type">Left</span></a></span><span> </span><span id="local-6989586621679647911"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647911"><span class="hs-identifier hs-var">err</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; Either String b
forall a b. a -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-var">Left</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647911"><span class="hs-identifier hs-var">err</span></a></span><span>
</span><span id="line-34"></span><span>
</span><span id="line-35"></span><span id="local-6989586621679647953"><span class="annot"><a href="Distribution.ReadE.html#succeedReadE"><span class="hs-identifier hs-type">succeedReadE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679647953"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647953"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-36"></span><span id="succeedReadE"><span class="annot"><span class="annottext">succeedReadE :: forall a. (String -&gt; a) -&gt; ReadE a
</span><a href="Distribution.ReadE.html#succeedReadE"><span class="hs-identifier hs-var hs-var">succeedReadE</span></a></span></span><span> </span><span id="local-6989586621679647910"><span class="annot"><span class="annottext">String -&gt; a
</span><a href="#local-6989586621679647910"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; Either String a) -&gt; ReadE a
forall a. (String -&gt; Either String a) -&gt; ReadE a
</span><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; Either String a
forall a b. b -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-var">Right</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; Either String a)
-&gt; (String -&gt; a) -&gt; String -&gt; Either String a
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; a
</span><a href="#local-6989586621679647910"><span class="hs-identifier hs-var">f</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span id="local-6989586621679647948"><span class="annot"><a href="Distribution.ReadE.html#failReadE"><span class="hs-identifier hs-type">failReadE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ErrorMsg"><span class="hs-identifier hs-type">ErrorMsg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647948"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-39"></span><span id="failReadE"><span class="annot"><span class="annottext">failReadE :: forall a. String -&gt; ReadE a
</span><a href="Distribution.ReadE.html#failReadE"><span class="hs-identifier hs-var hs-var">failReadE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; Either String a) -&gt; ReadE a
forall a. (String -&gt; Either String a) -&gt; ReadE a
</span><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span><span> </span><span class="annot"><span class="annottext">((String -&gt; Either String a) -&gt; ReadE a)
-&gt; (String -&gt; String -&gt; Either String a) -&gt; String -&gt; ReadE a
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">Either String a -&gt; String -&gt; Either String a
forall a b. a -&gt; b -&gt; a
</span><a href="../../base/src/GHC.Base.html#const"><span class="hs-identifier hs-var">const</span></a></span><span> </span><span class="annot"><span class="annottext">(Either String a -&gt; String -&gt; Either String a)
-&gt; (String -&gt; Either String a)
-&gt; String
-&gt; String
-&gt; Either String a
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; Either String a
forall a b. a -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-var">Left</span></a></span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span id="local-6989586621679647944"><span class="annot"><a href="Distribution.ReadE.html#readEOrFail"><span class="hs-identifier hs-type">readEOrFail</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647944"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679647944"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-42"></span><span id="readEOrFail"><span class="annot"><span class="annottext">readEOrFail :: forall a. ReadE a -&gt; String -&gt; a
</span><a href="Distribution.ReadE.html#readEOrFail"><span class="hs-identifier hs-var hs-var">readEOrFail</span></a></span></span><span> </span><span id="local-6989586621679647905"><span class="annot"><span class="annottext">ReadE a
</span><a href="#local-6989586621679647905"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; a) -&gt; (a -&gt; a) -&gt; Either String a -&gt; a
forall a c b. (a -&gt; c) -&gt; (b -&gt; c) -&gt; Either a b -&gt; c
</span><a href="../../base/src/Data.Either.html#either"><span class="hs-identifier hs-var">either</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; a
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span> </span><span class="annot"><span class="annottext">(Either String a -&gt; a)
-&gt; (String -&gt; Either String a) -&gt; String -&gt; a
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ReadE a -&gt; String -&gt; Either String a
forall a. ReadE a -&gt; String -&gt; Either String a
</span><a href="Distribution.ReadE.html#runReadE"><span class="hs-identifier hs-var hs-var">runReadE</span></a></span><span> </span><span class="annot"><span class="annottext">ReadE a
</span><a href="#local-6989586621679647905"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-43"></span><span>
</span><span id="line-44"></span><span id="local-6989586621679647935"><span class="annot"><a href="Distribution.ReadE.html#parsecToReadE"><span class="hs-identifier hs-type">parsecToReadE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ErrorMsg"><span class="hs-identifier hs-type">ErrorMsg</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Parsec.html#ParsecParser"><span class="hs-identifier hs-type">ParsecParser</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647935"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-type">ReadE</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679647935"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-45"></span><span id="parsecToReadE"><span class="annot"><span class="annottext">parsecToReadE :: forall a. (String -&gt; String) -&gt; ParsecParser a -&gt; ReadE a
</span><a href="Distribution.ReadE.html#parsecToReadE"><span class="hs-identifier hs-var hs-var">parsecToReadE</span></a></span></span><span> </span><span id="local-6989586621679647901"><span class="annot"><span class="annottext">String -&gt; String
</span><a href="#local-6989586621679647901"><span class="hs-identifier hs-var">err</span></a></span></span><span> </span><span id="local-6989586621679647900"><span class="annot"><span class="annottext">ParsecParser a
</span><a href="#local-6989586621679647900"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; Either String a) -&gt; ReadE a
forall a. (String -&gt; Either String a) -&gt; ReadE a
</span><a href="Distribution.ReadE.html#ReadE"><span class="hs-identifier hs-var">ReadE</span></a></span><span> </span><span class="annot"><span class="annottext">((String -&gt; Either String a) -&gt; ReadE a)
-&gt; (String -&gt; Either String a) -&gt; ReadE a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679647899"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647899"><span class="hs-identifier hs-var">txt</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-46"></span><span>    </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ParsecParser a -&gt; String -&gt; FieldLineStream -&gt; Either ParseError a
forall a.
ParsecParser a -&gt; String -&gt; FieldLineStream -&gt; Either ParseError a
</span><a href="Distribution.Parsec.html#runParsecParser"><span class="hs-identifier hs-var">runParsecParser</span></a></span><span> </span><span class="annot"><span class="annottext">ParsecParser a
</span><a href="#local-6989586621679647900"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&lt;parsecToReadE&gt;&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; FieldLineStream
</span><a href="Distribution.Parsec.FieldLineStream.html#fieldLineStreamFromString"><span class="hs-identifier hs-var">fieldLineStreamFromString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647899"><span class="hs-identifier hs-var">txt</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-47"></span><span>        </span><span class="annot"><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-type">Right</span></a></span><span> </span><span id="local-6989586621679647896"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679647896"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">a -&gt; Either String a
forall a b. b -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-var">Right</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679647896"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-48"></span><span>        </span><span class="annot"><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-type">Left</span></a></span><span> </span><span id="local-6989586621679647895"><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679647895"><span class="hs-identifier hs-var">_e</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; Either String a
forall a b. a -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-var">Left</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; String
</span><a href="#local-6989586621679647901"><span class="hs-identifier hs-var">err</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679647899"><span class="hs-identifier hs-var">txt</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-49"></span><span class="hs-comment">-- TODO: use parsec error to make 'ErrorMsg'.</span><span>
</span><span id="line-50"></span></pre></body></html>